/**
 * windoes linux __dirname表示方式不一样
*/
var path = require("path");


console.log(__dirname);
console.log(__filename);

var filePath='';
// var filePath = __dirname + '\\view\\index.html';
// var linuxFilePath = __dirname + '/view/index.html';

var platForm = process.platform;
switch(platForm){
    case'win32':
        filePath = __dirname + '\\view\\index.html'
        break;
    case'linux':
        filePath = __dirname + '/view/index.html'
        break;
    default:
        console.log('操作系统未知')
        break;
}
var pathStr = path.join(__dirname,'/view/index.html');